﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpages/Main.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<%@ Register src="Controls/ContentHolder/Holder1.ascx" tagname="Holder1" tagprefix="uc1" %>

<%@ Register src="Controls/ContentHolder/Holder2_wo_Header.ascx" tagname="Holder2_wo_Header" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"  >
    <div style="font-family:Tahoma;font-size:11;" align="center">
    <uc1:Holder1 ID="Holder1" runat="server" Title="ورود به سیستم"   >
    <ContentTemplate >
         <asp:Login ID="Login1" runat="server" CssClass="MainObject" 
    Width="100%" FailureText="خطا در ورود به سیستم" OnLoggedIn="Login1_LoggedIn" DestinationPageUrl="~/Default.aspx"
    BackColor="Transparent" BorderColor="Transparent" BorderPadding="4" BorderStyle="Solid" 
    BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" 
    TextLayout="TextOnTop">
             <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
        <LayoutTemplate>
         
                        <table cellpadding="0"  >
                         
                            <tr>
                                <td align="right">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                                        CssClass="MainObject">نام کاربری  :</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"  ></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="نام کاربری را وارد کنید." 
                                        ToolTip="نام کاربری را وارد کنید." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" 
                                        CssClass="MainObject">رمز عبور :</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="کلمه عبور را وارد کنید." 
                                        ToolTip="کلمه عبور را وارد کنید." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="مرا به خاطر بسپار" 
                                        CssClass="MainObject" />
                                </td>
                            </tr>
                            <tr>
                                
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="ورود" 
                                        ValidationGroup="Login1" CssClass="MainObject" Width="70px" />
                                    
                                </td>
                            </tr>
                        </table>
                
        </LayoutTemplate>
             <LoginButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" 
                 BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
             <TextBoxStyle Font-Size="0.8em" />
             <TitleTextStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.9em" 
                 ForeColor="White" />
    </asp:Login>
    </ContentTemplate>
    </uc1:Holder1>
    </div>
</asp:Content>

